var QQMapWX = require('../../libs/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js');
var qqmapsdk;
Page({
  data: {
    bannerUrl: 'https://img.klsgspa.com/1539657162191.jpg',
    love: false, // 爱心
    organizerUrl: 'https://img.klsgspa.com/1540483001644.jpg',

    current: '1',
  },

  onLoad: function () {
    // 实例化API核心类
    qqmapsdk = new QQMapWX({
      key: '申请的key'
    });
  },

  goMap: function() {
    wx.navigateTo({
      url: '../map/map'
    })
  },

  handleChange({ detail }) {
    this.setData({
      current: detail.key
    });
  },
})